﻿using CoreModule;
using Microsoft.Extensions.Logging;
using Prism.Ioc;
using Prism.Modularity;
using System;
using System.Configuration;
using System.Windows.Media;
namespace Yuwell.AtomizerWeight.App
{
    /// <summary>
    /// 加载 
    /// </summary>
    public class AppModuleInitializer : ModuleInitializer
    {
 
      
        ILogger Logger { get; set; }
        public AppModuleInitializer(
            ILogger logger,
            IContainerExtension containerExtension) : base(containerExtension)
        {
          
            Logger = logger; 
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="typeName"></param>
        /// <returns></returns>
        protected override IModule CreateModule(string typeName)
        {
            return base.CreateModule(typeName);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="moduleInfo"></param>
        /// <param name="assemblyName"></param>
        /// <param name="exception"></param>
        public override void HandleModuleInitializationError(IModuleInfo moduleInfo, string assemblyName, Exception exception)
        {
            base.HandleModuleInitializationError(moduleInfo, assemblyName, exception);
         
        }
    }
}
